﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:vme="clr-namespace:Notoric.ViewModel.Elements;assembly=ViewModel"
                    xmlns:ctrls="clr-namespace:Notoric.Gui.Controls">
    <ResourceDictionary.MergedDictionaries>
        <ResourceDictionary Source="pack://application:,,,/CWMNView;Component/Resources/SectionInterior.xaml"/>
        <ResourceDictionary>
            <DataTemplate DataType="{x:Type vme:DefaultImageSectionInterior}">
                <Image Source="{Binding ImageSource, Mode=OneWay}" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Stretch="Fill"/>
            </DataTemplate>
            
            <DataTemplate DataType="{x:Type vme:RtfTextSectionInterior}">
                <ctrls:RtfTextSectionInterior Document="{Binding Document, Mode=OneWay}"/>
            </DataTemplate>
            
            <DataTemplate DataType="{x:Type vme:Section}">
                <Canvas>
                    <ctrls:Section DataContext="{Binding}"/>
                </Canvas>
            </DataTemplate>
        </ResourceDictionary>
    </ResourceDictionary.MergedDictionaries>

</ResourceDictionary>